package cn.ffcs.tmp.web;

import java.util.ArrayList;

import lotus.domino.*;
public class LinkDomino
{
    private Session session;
    private String message;
    public static String procString(String source){
        if(source!=null&&source.indexOf(".")>-1&&source.indexOf("|")>-1&&source.indexOf("/")>-1){
            String temp=source.substring(source.indexOf("|")+1);
            String pre=temp.substring(0,temp.indexOf("/"));
            String sub=temp.substring(temp.indexOf("."));
            if(!"".equals(sub)){
                return pre+sub;
            }
        }
        
        return source;
    }
    public static void main(String [] args){
        System.out.println(LinkDomino.procString("“销售直通车”产品说明书|“销售直通车”产品说明书/文件1.doc"));
        
    }

    public void setSession(Session session)
    {
        this.session = session;
    }
    
    public Session getSession()
    {
        return session;
    }

    public void create(){
        
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }
}
